package singleton.pattern.Demo3;

/**
 * Created by DELL
 * Date: 2019/9/28.
 * Time: 13:41
 */
class MakeACaption {
    //Earyly initialization
    private static MakeACaption _caption = new MakeACaption();
    //We make the construction private to prevent the use of "new"
    private MakeACaption(){

    };
    //Global point of access //MakeACaption.getCaption is a public static //method
    public static MakeACaption getCaption(){
        return  _caption;
    }
}
